<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysApproveLevelBean.id}"/>
		<f:event type="preRenderView" listener="#{sysApproveLevelBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sys Approve Level"/>

	<ui:define name="header">
		Sys Approve Level
	</ui:define>

	<ui:define name="subheader">
		View existing Sys Approve Level
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sysApproveLevelBeanSysApproveLevelSysUserRole" value="Sys User Role:"/>
			<h:link id="sysApproveLevelBeanSysApproveLevelSysUserRole" outcome="/form/sysUserRole/view" value="#{sysApproveLevelBean.sysApproveLevel.sysUserRole}">
				<f:param name="id" value="#{sysApproveLevelBean.sysApproveLevel.sysUserRole.roleNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sysApproveLevelBeanSysApproveLevelApprovedLevelDescr" value="Approved Level Descr:"/>
			<h:outputText id="sysApproveLevelBeanSysApproveLevelApprovedLevelDescr" value="#{sysApproveLevelBean.sysApproveLevel.approvedLevelDescr}"/>
			<h:outputText/>
			<h:outputLabel for="sysApproveLevelBeanSysApproveLevelApprovedLevelVal" value="Approved Level Val:"/>
			<h:outputText id="sysApproveLevelBeanSysApproveLevelApprovedLevelVal" value="#{sysApproveLevelBean.sysApproveLevel.approvedLevelVal}"/>
			<h:outputText/>
			<h:outputLabel for="sysApproveLevelBeanSysApproveLevelSaleLoanContracts" value="Sale Loan Contracts:"/>
			<h:dataTable id="sysApproveLevelBeanSysApproveLevelSaleLoanContracts" styleClass="data-table" value="#{forgeview:asList(sysApproveLevelBean.sysApproveLevel.saleLoanContracts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Hr Emp"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemHrEmp" value="#{forgeview:display(_item.hrEmp)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Cust"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysCust" value="#{forgeview:display(_item.sysCust)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Vehicle Brand"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysVehicleBrand" value="#{forgeview:display(_item.sysVehicleBrand)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sale Loan Grade"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSaleLoanGrade" value="#{forgeview:display(_item.saleLoanGrade)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Org"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysOrg" value="#{forgeview:display(_item.sysOrg)}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysApproveLevelBeanSysApproveLevelSysApproveLevelRateVehicleTypes" value="Sys Approve Level Rate Vehicle Types:"/>
			<h:dataTable id="sysApproveLevelBeanSysApproveLevelSysApproveLevelRateVehicleTypes" styleClass="data-table" value="#{forgeview:asList(sysApproveLevelBean.sysApproveLevel.sysApproveLevelRateVehicleTypes)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Vehicle Type 01"/>
					</f:facet>
					<h:link outcome="/form/sysApproveLevelRateVehicleType/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysVehicleType01" value="#{forgeview:display(_item.sysVehicleType01)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Approved Min Val"/>
					</f:facet>
					<h:link outcome="/form/sysApproveLevelRateVehicleType/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemApprovedMinVal" value="#{_item.approvedMinVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Approved Max Val"/>
					</f:facet>
					<h:link outcome="/form/sysApproveLevelRateVehicleType/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemApprovedMaxVal" value="#{_item.approvedMaxVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysApproveLevelBeanSysApproveLevelSysApproveLevelRates" value="Sys Approve Level Rates:"/>
			<h:dataTable id="sysApproveLevelBeanSysApproveLevelSysApproveLevelRates" styleClass="data-table" value="#{forgeview:asList(sysApproveLevelBean.sysApproveLevel.sysApproveLevelRates)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Approved Max Val"/>
					</f:facet>
					<h:link outcome="/form/sysApproveLevelRate/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemApprovedMaxVal" value="#{_item.approvedMaxVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Approved Level Seq No"/>
					</f:facet>
					<h:link outcome="/form/sysApproveLevelRate/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemApprovedLevelSeqNo" value="#{_item.approvedLevelSeqNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>